<div class="slide-dialog-header">
	<h2>{{title}}</h2>
	<div class="slide-dialog-toolbar">
		<ul>
			<li><span class="ui-btn slide-dialog-close" ng-click="close(false)"><i class="fa fa-remove"></i></span></li>
		</ul>
	</div>
</div>
<div class="slide-dialog-body  x-slide-dialog-body">
	<div class="x-data-panel-fixed">
		<form name="form" novalidate="novalidate" ng-submit="submit(form.$valid);">
			<div class="x-data-panel-body">
				<div class="data-form">
					<table cellspacing="0" cellpadding="0">
						<colgroup>
							<col width="100" />
							<col />
						</colgroup>
						<tbody>
							<tr>
								<td>规则名称：</td>
								<td><span class="text-danger">{{data.name}}</span></td>
							</tr>
							<tr>
								<td>参数继承：</td>
								<td><label data-toggle><input type="checkbox" ng-model="data.extend" class="x-chk" ng-true-value="1" ng-false-value="0" ng-click="eitherShift()" /></label></td>
							</tr>
							<tr>
								<td class="x-control"><span class="x-star">*</span>规则参数：</td>
								<td>
									<div class="form-field-auto">
										<p ng-repeat="param in vm.params track by $index">
											<i class="fa fa-text-width"></i> <label>参数{{$index+1}} ( <em class="text-danger">{{param.name}}</em> )：</label>&nbsp;&nbsp;<span ng-if="!param.checked"><select ng-model="data.params[$index].value" ng-options="m.name as (m.name + (m.text ? '（' + m.text + '）' : '')) for m in vm.fields" required><option value="">请选择字段</option></select></span><span ng-if="param.checked"><input name="{{param.name}}" type="text" ng-model="data.params[$index].value" class="x-ipt" required /></span> &nbsp; <label class="checkbox-group"><input ng-model="param.checked" class="x-checkbox" type="checkbox" />文本</label> <span class="x-error" ng-if="param.checked && interacted(form[param.name])" ng-messages="form[param.name].$error"><span ng-message="required">不能为空</span></span>
										</p>
									</div>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<div class="x-data-panel-footer">
				<button class="dialog-button cancel-button" type="button" ng-click="close(false)">取消</button><button class="dialog-button" type="submit" ng-disabled="formDisabled">提交</button>
			</div>
		</form>
	</div>
</div>